package arithmetic;

//题目：求s=a+aa+aaa+aaaa+aa…a的值，其中a是一个数字。例如2+22+222+2222+22222(此时共有5个数相加)，几个数相加有键盘控制。

import java.util.Random;
import java.util.Scanner;

public class Arithmetic10 {


    public static void main(String[] args) {
        long i = 0L;
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        Random random = new Random();
        int b = random.nextInt(10);
        int c =b;
        for (int j = 1; j <a ; j++) {
            i +=b;
            System.out.print(b+"+");
            b =b*10+c;
        }
        System.out.println(b+"="+(long)(i+b));
    }
}
